using huqiang.Core.HGUI;
using System;
using UnityEngine;
using huqiang.UIComposite;
using huqiang.UIEvent;
using huqiang;
using huqiang.Data;
using huqiang.UIModel;
using System.Collections.Generic;

public class DropDownPage:UIPage
{
    //反射UI界面上的物体
    class View
    {
        public DropdownEx dropDown;
    }
    View view;
    public override void Initial(UIElement parent, object dat = null)
    {
        base.Initial(parent, dat);
        view = LoadUI<View>("baseUI", "DropDownPage");//"baseUI"创建的bytes文件名,"page"为创建的页面名
        InitialData();
    }
    void InitialData()
    {
        List<string> dat = new List<string>();
        for (int i = 100; i < 200; i++)
            dat.Add(i.ToString());
        view.dropDown.scrollY.BindingData = dat;
        view.dropDown.scrollY.Refresh();
    }
}
